<?php
#Header of each admin page
function head_admin($title=""){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?=HTML_BASE_ADMIN?>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$title?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" />

</head>
<body>
<div id="wrap" class="clearfix">

<div id="wraptop" class="clearfix">
	<div id="top">
		<div id="topleft">
			<h2><a href="index.php" title="Към начална страница"><?=DOMAIN_NAME?>/администрация</a></h2>
		</div><!--END: topleft-->
		<div id="topright">
			
			<? if ($_SESSION['USERNAME']) { ?>
			Здравей <?=$_SESSION['USERNAME']?>, <a href="../logout.php">изход</a>
			<? } ?>
		</div><!--END: topright-->
        
        
        
        
	</div><!--END: top-->
</div><!--END: wraptop-->

<div id="wrapin" class="clearfix">
	<div id="content">
		<div id="left">
			
<?	
}

# Footer of each admin page
function foot_admin(){
?>
</div><!--END: left-->
        
        <div id="version">
            <span class="version"><a href="<?=HTML_BASE?>" target="_blank">преглед на сайта &raquo;</a></span>
        </div>
        <div id="right">
            <ul class="menu">
            	
				<li><a href="tasks.php">Кореспонденции</a></li>
                <li><a href="clients.php">Клиенти</a></li>
                <li><a href="pages.php">Страници</a></li>
                <li><a href="users.php">Админи и юристи</a></li> 
                
            </ul>
        </div><!--END: right-->
		<div id="version">
            <span class="version">
			website: <?=DOMAIN_NAME?><br />
			версия <?=VERSION?><br/><br/><br/>
			</span>
        </div>
		
    </div><!--END: content-->
</div><!--END: wrapin-->

<div id="footerwrap" class="clearfix">
    <div id="footer">
        &copy; Административна система от <a href="http://studiokipo.com" target="_blank">Студио Кипо</a>
	</div><!--END: footer-->
</div><!--END: footerwrap-->

</div><!--END: wrap-->

</body>
</html>
<?
}
?>